<?php

namespace app\admin\validate;

use think\Validate;

class Guanlian extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'admin_id' => 'require',
        'name' => 'require'
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'admin_id.require' => '请选择管理员',
        'name.require' => '请输入名称'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['admin_id', 'name'],
        'edit' => ['name'],
    ];
    
}
